import axios from './axios'

// let baseUrl = 'http://192.168.55.27:8064/mng'
let baseUrl = 'http://ctapi.kaixiangtech.com:38064/mng'
// let baseUrl = 'https://222.246.146.4:28080/mng'
// let baseUrl = 'https://hunantelenas.kaixiangtech.com:28080/mng'

export const getMobile=(data)=>{
    return axios({
        method: 'post',
        url: baseUrl + '/pan/user/mobile',
        params: {},
        data: data
    })
}

export const getLogin = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/user/login',
        params: {},
        data: data
    })
}

export const getPanLoginCheck = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/login/check',
        params: {},
        data: data
    })
}

export const getCode = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/get/code',
        params: {},
        data: data
    })
}


export const getFileAndFolder = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/list/fileAndFolder',
        params: {},
        data: data
    })
}


export const addDownLoadTask = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/task/download/add',
        params: {},
        data: data
    })
}

export const getTaskList = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/task/list',
        params: {},
        data: data
    })
}

export const addUpload = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/task/upload/add',
        params: {},
        data: data
    })
}


export const getPanUserInfo = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/user/info',
        params: {},
        data: data
    })
}

export const logout = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/user/logout',
        params: {},
        data: data
    })
}

export const checkToken = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/token/check',
        params: {},
        data: data
    })
}


export const taskClear = (data) => {
    return axios({
        method: 'post',
        url: baseUrl + '/pan/task/clear',
        params: {},
        data: data
    })
}



